package com.cskaoyan.demo2.controller;

import com.cskaoyan.demo2.service.TransferService;
import com.cskaoyan.demo2.service.TransferServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TransferController {


    @Autowired
    TransferService transferService;



    @RequestMapping("transfer")
    public Object transfer(Integer from, Integer dest, Double money){
        transferService.transfer(from, dest, money);


        return null;
    }
}
